package cate.common.table.throne.sacrifice;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass("升级")
public class KingSacrificeLevelSheet extends ESheet<KingSacrificeLevelRow> {

    @Override
    public String getSheetName() {
        return "升级";
    }

    @Override
    protected KingSacrificeLevelRow buildRow() {
        return new KingSacrificeLevelRow();
    }

    public KingSacrificeLevelRow findRow(byte job, int level) {
        for (KingSacrificeLevelRow row : this.getList()) {
            if (row.job == job && row.level == level) {
                return row;
            }
        }
        return null;
    }
}
